package test1223;

public class Test09 {
    public static void main(String[] args) {

        // 求 1 + 2 + 3 + 4 + 6 + 7 + 8 + 10 的和
        int sum = 0;
        for (int i = 1; i <= 10; i++) {
            if (i != 5&&i!=9) {
                sum += i;
            }
        }

        System.out.println(sum);
    }
}
